<?php
       	  if($_SESSION['per']==3 ||$_SESSION['per']==2){
					   exit();
				 }
        $xcrud = Xcrud::get_instance();
        $xcrud->table('users');
		$xcrud->relation('group_id','user_group','id','name');
       

        
        $xcrud->change_type('avatar', 'remote_image');


                   $xcrud->fields('username,name,email,avatar,status,active,group_id,facebook,facebook_id', false, 'My Information');
				   $xcrud->fields('views,comments,likes,rank,acp', false, 'Static');
                   $xcrud->fields('date_registered,date_login,ip_register,ip_login,changepass', false, 'Other');

                 $xcrud->theme('bootstrap');
                 $xcrud->table_name('User Manage System');
				 $xcrud->show_primary_ai_column(true);
           
                 
			               
                 echo $xcrud->render();


?>
